package queuecode;

/**
 * @author noob
 * @version 1.0
 * @date 2021/3/14 14:05
 */
public class ArrayQueueTest {

    public static void main(String[] args) {
        ArrayQueue<Integer> arrayQueue = new ArrayQueue<>();
        for (int i = 0; i < 10; i++) {
            arrayQueue.enqueue(i);
            System.out.println(arrayQueue);
            if(i % 3 ==2){
                arrayQueue.dequeue();
                System.out.println(arrayQueue);
            }
        }




    }
}
